package com.zhuojy.equity.mall.admin.web.controller;

import com.zhuojy.equity.mall.admin.common.pojo.ResultEntity;
import com.zhuojy.equity.mall.admin.service.LogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xrz
 * @version 1.0
 * @description:TODO
 * @date 2024/3/26 15:14
 */
@RestController
@RequestMapping("/log")
@RequiredArgsConstructor
@Api(tags = "日志模块",value = "日志模块" )
public class LogController {


    @Autowired
    private LogService logService;

    @RequestMapping("findall")
    @ApiOperation(value = "查询数据",httpMethod = "POST")
    public ResultEntity findall(@RequestParam("pageSize") Integer pageSize, @RequestParam("pageNum")Integer pageNum){
        return logService.findall(pageSize,pageNum);
    }
}
